package com.awifi.com.thread.pool;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/6/29 18:21
 */
public class TestThreadPool {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(3);
        ThreadPool threadPool = new ThreadPool();
        executorService.submit(threadPool);
        executorService.submit(threadPool);
        executorService.shutdown();
    }
}
